import HomeChildLayout from "@/layout/child-layout.vue";

const showMenus = JSON.parse(sessionStorage.getItem('menus')) || [];
//console.log(showMenus)
// name为唯一标识
let menus = [

];

// 遍历修改菜单属性
const filterFun = (menu) => {
    for (let i = 0, l = showMenus.length; i < l; i++) {
        if (showMenus[i].id == menu.id) {
            menu.meta.title = showMenus[i].name;
            break;
        }
    }
}
let paths = []; // 记录非新窗口打开的路由
let pathsBlank = []; // 记录新窗口打开的路由
menus = showMenus
export { paths, pathsBlank, menus };